package com.jinke.api.modules.third.easypost.model.request;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 创建保险请求参数类
 */

@Data
@JsonSerialize
public class CreateInsuranceDTO {

    @JsonProperty("from_address")
    private Address sender;
    @JsonProperty("to_address")
    private Address recipient;

    private String tracking_code;
    private String carrier;
    private String reference;
    private String amount;
    private String mode;

    @Data
    public static class Address {
        private String company;
        private String name;
        private String street1;
        private String street2;
        private String city;
        private String state;
        private String zip;
        private String phone;
        @ApiModelProperty("国家代码")
        private String country;
        private Boolean residential;
    }

}

